yjx.directive('pdfChange',[function(){
    return{
        restrict:'A',
        scope:{
            pdfLoading:'=pdfLoading',
            pdfView:'=pdfView'
        },
        link:function($scope,$elem,attr){
            $scope.$watch(attr.pdfChange,function(newVal){
                $scope.pdfLoading = true;
                $scope.pdfView(newVal)
            })
        }
    }
}])